home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 1 Issue 2 / PDCD-1 - Issue 02.iso / _utilities / utilities / 003 / _unimode2 / !UniMode2 / ModeScript / DIY_BSDM < prev    next >
Text File  |  1994-08-14  |  3KB  |  95 lines

  1. #ModeDescription        Broadcast Standard Display Mode
  2. # Converted on Sun,14 Aug 1994.14:36:34
  3. #
  4. #  ***** DIY General broadcast standard display modes *****
  5. #
  6. #  Make your own specific mode by setting the number of columns (C(0)), the
  7. #  number of rows (C(1)) and the Log2BPP (C(4)).
  8. #
  9. #  The compiler can determine all necessary values using the rest of this file.
  10. #  This file is almost a guarantee of getting a working mode.(except, somehow, 
  11. #  for widths of 73 and 97 characters)
  12. #
  13. #  Absolute maximum ratings:   x: 144   y: 35
  14. #
  15. #  What is a Broadcast Standard Display Mode? A BSDM always has to meet next
  16. #  requirements:
  17. #    - Rasterfrequency 50Hz
  18. #    - Linefrequency 15625Hz
  19. #    - several specs regarding sync pulses, front and back porches etc.
  20. #
  21. #  For RISC-OS computers, it is very simple to determine if you can use this
  22. #  file: If you have configured MonitorType 0 or 1, you should be able to use
  23. #  it. (Use *Status MonitorType)
  24. #
  25. #  This file is NOT fool-proof since an MDF is not allowed to generate errors.
  26. #  This means you should be very careful when trying out your new mode when you
  27. #  updated more than only the first three constants.
  28. #
  29. #
  30. #  This file was developed by J.P. Hendrix and is 
  31. #    ⌐  06-April-1992  by Hendrix Bros.
  32. #
  33. #  Any MDF created using this file is not subjected to the above copyright
  34. #  notice.
  35. #
  36. #
  37. #  0: No. Columns   1: No. Rows   2: X Offset   3: Y Offset   4: Log2BPP   5: XEig   6: YEig   7: Pixel rate (MHz)
  38. #     1 - 144          1 - 35                                    0 - 3
  39. #
  40. #  Log2BPP: 0 -> 2 colours   1 -> 4 colours   2 -> 16 colours   3 -> 255 colours
  41. #
  42. #
  43. # .Declarations
  44. C00:                96
  45. C01:                32
  46. C04:                 2
  47. #
  48. #
  49. #  *** WARNING *** :  Only change the text below if you are 100% sure of what you
  50. #                     are doing !!!
  51. #
  52. C07: -(24*(C(0)>96)+16*((C(0)>72)AND(C(0)<=96))+12*((C(0)>48)AND(C(0)<=72))+8*(C(0)<=48))
  53. C02: 14*C(7)+(6*C(7)-C(0))*4-1
  54. C03:    23+(35-C(1))*4
  55. C05:                 1
  56. C06:                 2
  57. #
  58. #
  59. # .MachineSpecs
  60. VIDC:ON,Standard50Hz
  61. # .VIDCList
  62. BaseModeV:     18+C(4)
  63. HCR:           64*C(7)
  64. HSWR:           5*C(7)
  65. HBSR:           C(2)-2
  66. HDSR:             C(2)
  67. HDER:      C(2)+C(0)*8
  68. HBER:    C(2)+C(0)*8+2
  69. #
  70. VCR:               312
  71. VSWR:                3
  72. VBSR:           C(3)-2
  73. VDSR:             C(3)
  74. VDER:      C(3)+C(1)*8
  75. VBER:    C(3)+C(1)*8+2
  76. CR: &30+C(4)*4-3*(C(7)=24)-2*(C(7)=16)-(C(7)=12)
  77. #
  78. # .WorkspaceList
  79. BaseModeM:     18+C(4)
  80. ModeFlags:           0
  81. ScrRCol:        C(0)-1
  82. ScrBRow:        C(1)-1
  83. NColour: (2^(2^C(4))-1)AND63
  84. XEigFactor:       C(5)
  85. YEigFactor:       C(6)
  86. LineLength: C(0)*2^C(4)
  87. ScreenSize: C(0)*C(1)*8*2^C(4)
  88. #
  89. Log2BPP:          C(4)
  90. Log2BPC:          C(4)
  91. XWindLimit:   8*C(0)-1
  92. YWindLimit:   C(1)*8-1
  93. #
  94. # .End
  95.